Browse Source

Changed option declaration to object literal syntax

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

12
js/push.js

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

Loading…
Cancel
Save