Skip to content

Different init - #187

Open
Koala Yeung (yookoala) wants to merge 2 commits into
buildinternet:developfrom
pixelaction:different_init
Open

Different init#187
Koala Yeung (yookoala) wants to merge 2 commits into
buildinternet:developfrom
pixelaction:different_init

Conversation

@yookoala

Copy link
Copy Markdown

The original supersized library generate 2 divs automatically:

  1. #supersized-loader
  2. #supersized

These 2 divs are generated even if the library is not called by
explicit $('selector').supersized() call. That is an unexpected
behaviour.

This commit movied the append statement into the supersized
plugin. The divs are now appended only if:

  1. $.supersized is called explicitly; and
  2. The #supersized div is previously not existed

The behaviour is a slightly different from before, but all other
behaviour reserved.

Zach Dunn (zachdunn) and others added 2 commits September 5, 2014 15:20
Fix for problem pulling photos from Flickr
The original supersized library generate 2 divs automatically:
 1. #supersized-loader
 2. #supersized

These 2 divs are generated even if the library is not called by
explicit `$('selector').supersized()` call. That is an unexpected
behaviour.

This commit movied the append statement into the supersized
plugin. The divs are now appended only if:

 1. $.supersized is called explicitly; and
 2. The #supersized div is previously not existed

The behaviour is a slightly different from before, but all other
behaviour reserved.
@yookoala
Koala Yeung (yookoala) deleted the different_init branch September 5, 2014 07:29
@yookoala
Koala Yeung (yookoala) restored the different_init branch September 5, 2014 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants