Browse Source

Changed option declaration to object literal syntax

pull/427/head
ericgmcdaniel 11 years ago
parent
commit
06bc8a6052
  1. 10
      js/push.js

10
js/push.js

@ -383,11 +383,11 @@
var triggerStateChange = function () { var triggerStateChange = function () {
var e; var e;
var options = {}; var options = {
detail: { state: getCached(PUSH.id) },
options.detail = { state: getCached(PUSH.id) }; bubbles: true,
options.bubbles = true; cancelable: true
options.cancelable = true; };
if (typeof CustomEvent === 'function') { if (typeof CustomEvent === 'function') {
e = new CustomEvent('push', options); e = new CustomEvent('push', options);

Loading…
Cancel
Save