Bug Tracker

Opened 9 years ago

Closed 8 years ago

#15121 closed bug (fixed)

wrap module uses manipulation module, but does not declare the dependency

Reported by: tj.vantoll Owned by:
Priority: low Milestone: 1.12/2.2
Component: manipulation Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

define([ "jquery/wrap" ], function( $ ) {
	$( "div" ).wrap( document.createElement( "div" ) );
});

This fails because wrap.js uses $.fn.clone(), which is defined in manipulation.js, but does not declare a dependency on it.

I'll send a PR.

Change History (3)

comment:1 Changed 8 years ago by timmywil

Milestone: None1.12/2.2
Priority: undecidedlow
Status: newopen

comment:3 Changed 8 years ago by TJ VanToll

Resolution: fixed
Status: openclosed

Wrap: Declare a dependency on the manipulation module

Fixes #15121 Closes gh-1589

Changeset: c18c6229c84cd2f0c9fe9f6fc3749e2c93608cc7

Note: See TracTickets for help on using tickets.