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 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);

Loading…
Cancel
Save