Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67C189C7D for ; Sat, 14 Apr 2012 17:57:35 +0000 (UTC) Received: (qmail 52310 invoked by uid 500); 14 Apr 2012 17:57:34 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 52288 invoked by uid 500); 14 Apr 2012 17:57:34 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 52280 invoked by uid 99); 14 Apr 2012 17:57:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2012 17:57:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anis.kadri@gmail.com designates 209.85.213.47 as permitted sender) Received: from [209.85.213.47] (HELO mail-yw0-f47.google.com) (209.85.213.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Apr 2012 17:57:27 +0000 Received: by yhjj56 with SMTP id j56so2086938yhj.6 for ; Sat, 14 Apr 2012 10:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=S8wJSwZMBSPzvn/d9ffsWzrhaoRTDHSONa19Ogi3Ov8=; b=PCqiogUWvZFTRnrPjavKMu0S2U+C0iBMM8SvbKyTmupflTPHeqcSVrKKkQpoK601nt lFM7VXrDZn/Qyj9wo6zmR/HGEKMfax+y10Fwkz0pfwp2rkjiZUf8TkvqiWIo0RGWgCNp wDHsHrOZHS1xUBjII8ZFGWl6o/Sq0fNARH6tIJKX2a/rQVe/vUpKz6NSUOc1BL1NJbPY sAM39i7zzRD+TPLewZToNK5KxkLytTOUsknTxFvqUqyY7wIgx7LO47ioqNu4lrrkBFFB ojQjZO1TB/eL7gFQcx+/KUwsyLKPmPHzzMbGRoi7F/5OpD7BR1sU/28g9k3e4BOLU8yU rh+Q== MIME-Version: 1.0 Received: by 10.236.138.197 with SMTP id a45mr5632323yhj.97.1334426227079; Sat, 14 Apr 2012 10:57:07 -0700 (PDT) Received: by 10.236.50.18 with HTTP; Sat, 14 Apr 2012 10:57:07 -0700 (PDT) In-Reply-To: References: Date: Sat, 14 Apr 2012 10:57:07 -0700 Message-ID: Subject: Re: why are we monkey patching addEventListener()? From: Anis KADRI To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf303bf9ae3e7b9804bda75185 X-Virus-Checked: Checked by ClamAV on apache.org --20cf303bf9ae3e7b9804bda75185 Content-Type: text/plain; charset=ISO-8859-1 I used create/init/dispatchEvent as well in my implementation until I started working with common js :) On Sat, Apr 14, 2012 at 10:50 AM, Filip Maj wrote: > > >The question is: > > > > GREAT ODIN'S RAVEN WHY ARE WE DOING THIS? > > Because that's how we've done it since day one. That's all I've got. > > > > >Does the following just not work for user-created events? > > > > event = document.createEvent('Events') > > event.initEvent(blah) > > > > window.dispatchEvent(event) > > // or document.dispatchEvent(event) > > Not sure, does it work across all platforms? > > --20cf303bf9ae3e7b9804bda75185--